Pass around a pointer to a message instead of byte arrays

[#56541642]