using MemoizedFile throughout the model
changing memoized file to use a single memoized value