Caches User objects for the DaoAuthenticationProvider.