Wavefront correction and aberrations pre-compensation in the middle of petawatt-class CPA laser chains