Negative valve overlap for temporarily storing residual gas in the cylinder