some optimizations for data transmissions

Don't send data if it hasn't changed from last time, if there's no data
available, or if we're already dealing with the 2nd phone.