api/waveform: use hashicorp LRU cache implementation in place of map+slice