I think you should pre-create two byte arrays and just write the right one depending on the if no reply is needed or not. This save the time to convert to bytes on every call