varying/perf #4: add midtier caching to flatMapped maps.