Optimze message structure for support multi type message.