Response of the radial stratification at the base of the convection zone to the activity cycle