[sc-memory] Add state checks