Integrated caching with filesystem