try same trick for repeated flat map, doesn't have as much effect. Still reduces GC though, and makes code simpler.