Generate memoization hooks (NOT IMPLEMENTED).