Preconditioning by approximations of the Gram matrix for convection-diffusion equations