MQTT determine when the last "retained" message arrived

I am sure you have considered this possibility and rejected it, but rather than use many different topics for the data could you instead build a single JavaScript object containing all the data and publish that to a single topic?