Directory caching