I\'m trying to optimize a piece of software which is basically running millions of tests. These tests are generated in such a way that there can be some repetitions. Of cour