Efficient aberrations pre-compensation and wavefront correction with a deformable mirror in the middle of a petawatt-class CPA laser system