Reduce log output when running in the optimization mode