Drastically improve perf with memoize