A new proxy to estimate the cosmic ray ionization rate in dense cores