Encode all messages in a single buffer
Better relay simulation