Only `rawdata`, `lasttag` and `pos` need to be stored