Deprecated and will be removed in a future version. Use a caching UserDetailsService instead.