[sc-memory] Save repository state ( #139)