reduce memory and consolidate shared vs transient cells (#8263)
### Description
This change reworks the structure to drop an option such that data which
is colocated with its type information doesn't need to store it twice.
### Testing Instructions
Existing tests should suffice.
---------
Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>