Avoid expensive work for auditing if it's not enabled. #3563