api/waveform: fix caching mechanism