Optimized SortingProfiler to use supercode