Time sync optimization