The umpteenth time my data-preparing script crashed a day in and had to be restarted from the beginning, I realised I could cache its results