Avoids a database query when all states have not changed in the time window when skip_initial_state is set.