Cache file contents