Filechecker: Add caching for directory traversal