I think we can just put these fields in `struct mem_type` and save some extra de-referencing, both cognitive and in terms of CPU activity.