Working on LRU cache for resources.