Allow memoization for all classes