Optimal behavior of viscoelastic flow at resonant frequencies.