An ultrasonic cleaner works by the energy released from the collapse of millions of tiny ( microscopic ) ` caviations 's near the dirty surface . An ultrasonic cleaner works mostly by energy released from the collapse of millions of microscopic cavitations near the dirty surface .