Memoizes file access and resolutions for speed.