Authentication and caching