I feel like we can probably leverage [Streams](http://nodejs.org/api/stream.html#stream_stream) here, but that improvement can wait for a later iteration.