move cache_waveforms setting closer to beginning of file