Switch dom_info structure from being malloced to be on the stack so we need less logic to keep track of its memory