My local Lidl currently has stock of small Ultrasonic Cleaners priced at £19.99. I've seen various videos in the past of people using these cleaners to clean their cycle components:
GP Lama video - • CLEAN BIKE: The Ultrasonic Part Cleaner! /...
GCN Tech video - • Ultrasonic Cleaning: How To Get A Super Cl...
The Lidl model is smaller, but cheaper, so even getting larger cassette cogwheels into it is a challenge. But I had a filthy cassette to try cleaning, and this video gives you an idea of the cleaner's capabilities.