Memoized redex dependent enumeration.

Getting about 4x speedup on our tests.