Removes unnecessary memoization