Optimise calculating device_list changes in `/sync`.