Improve IO perf with IO.copy_stream and #send_file