Checkpointable process can be integrated with the Sample class and automaticall cache/save their results.