Adding authentication caching