Fix issue where there are too many files in data directory. We now only
cache files with correct ext. AKA... we no longer keep all the filenames in
memory. The comparison operation will have us holding the lock on directory
a little longer (aka... whatever the OS is doing).