on-device data processing