Use a stream buffer instead of loading temp files