Add function to cache file server traversals