Save and Read CaseBase class efficiently