Add file existence cache.
Merge pull request #310 from thomasf/file-exists-cache3

Add file existence cache.