Sandbox demonstration of 2 possible approaches to speed improvement of writing to trace table: multiple rows in DataTable object or using parameterized SqlCommand object.
Incorporate parameterized SqlCommands into the TS.WriteTrace method
Sandbox analysis of the time it takes to execute method TS.UpdateParametersChecksum
comment out method TS.UpdateParametersChecksum
replace TS.UpdateParametersChecksum.  Turn on COM-visible IncrementDate and CountTimeSteps