Profiler: Call getContentType() only once in logData()