The power of Kolmogorov-Smirnov tests can be increased by transforming the empirical process into a new process that converges to a Wiener process under the null hypothesis and by choosing the transformation in such a way that some families of local alternatives become as noticeable as possible.
"Transformations of the empirical measure and Kolmogorov-Smirnov tests." Ann. Statist. 24 (5) 2020 - 2035, October 1996. https://doi.org/10.1214/aos/1069362307