Do the math where it’s easy

Fast private lookup tables, explained through one idea you already know — Parseval's theorem. A dot product is the same in the signal domain and the wavelet domain, so compute it wherever it's cheapest.