Undo using LRUCache for resource types