Avoid logging mulitple times for performance gains.