s/memorize/memoize/