Reduce the number of memory copies in OpenSslEngine