Fixes a bug with the cache when calling frequency_domain_strain and time_domain_strain after each other