avoid the conversion from const char * to QByteArray
where QByteArray may make a deep copy