Taming acoustic cavitation