MQTT-STORE: for-each optimizations