Optimization changes and benchmarking

This has been one of the biggest improvements and cumulative optimization changes to our DICOM toolkit since the beginning.