Offline sync improvements