Cache pubsub data, prevents emitting same data twice