Fix chunked streaming of request body and improve speed