Add good tracing for memoized version