Receive buffering performance optimization, no memcpy and less malloc