Could be the ECU relearning, you lose fine learning when clearing codes or removing power to the ECU like during a battery change.
This should not take long though, at most a few cold starts unless you have some mods or possibly failing/worn parts which may make it take longer.