Minor performance check by reducing flag check for container log