Prevent duplicate logging for performance.