Distributed file system caching middleware