memoize file contents