Note about derivative memoization