memoize keymaker has params of the decorated function