Context. Spectroscopy of exoplanets is very challenging because of the high star-planet contrast. A technical difficulty in the design of imaging instruments is the noncommon path aberrations (NCPAs) between the adaptive optics (AO) sensing and the science camera, which induce planet-resembling stellar speckles in the coronagraphic science images. In an observing sequence of several long exposures, quickly evolving NCPAs average out and leave behind an AO halo that adds photon noise to the planet detection. Static NCPA can be calibrated a posteriori using differential imaging techniques. However, NCPAs that evolve during the observing sequence do not average out and cannot be calibrated a posteriori. These quasi-static NCPAs are one of the ...