I would love to, but the variable size struct makes it even more complicated.  See get_entries_hash for the kind of contortions it requires.