Cache previous results (speeds up simulations).