Added an LRU cache for the file pointers.