optimize sync window