It would be better to set env_checked=true after env_hold_time is assigned otherwise parallel thread could end up using (yet) unitialized env_hold_time.