Refactor StorageManagerInternal into reading/writing part