update stats store and publish only when a new stats is created