Closes https://github.com/ppy/osu/issues/6980.
Also reduces number of instantiations of SearchableTerms array in the case of multiple criteria terms.
MathF-functions are faster than the Math-counterpart and it looks cleaner, so use MathF when we cast to float or int anyway.
Co-Authored-By: Bartłomiej Dach <dach.bartlomiej@gmail.com>