api/waveform: limit waveform cache to 10 entries