serialize the message only once when broadcasting