Implements resource caching