Path caching