caching is tricky

need to rethink how filecaching can work