Slightly better -- store only 25 elements of previous freqs state