Add hook for file level caching