That is probably the best way, for the test you have at hand. If you're checking for foreign matter, than a more efficient homogenizer (a blender, for example) or a harsher reagent would cause you to lose a result. Maybe, if you have to boil for a long time, a pressure vessel would soften the cheese faster, without destroying the contaminant. But you show look up the relevant regulatory board to see if that's allowed. Or validate such a new method yourself.