memoize curry and stop