Minor perf improvement to reading stream