Checkpoint before moving learning algorithm to cloud