Only update config when necessary