Memoize quoted method.

This will be called N+1 times for N paths.
Move integration spec to unit level.