path caching