process memoized function