Added memoize_outfile.