createStep(): Cache finished derivations

This gets rid of a lot of redundant calls to readDerivation().

Created by  Eelco Dolstra  on June 22, 2015
4D7CHQ345ZSI52GPNW73JOYALRLFEGI2YUDWKG4UCDE55MO5LQ2AC
Change contents