Remove unnecessary duplicate memoization