Cache configure results to speed up tests.