Improves memoization