Use persistent streams to improve performance and (temporary) memory usage