I’m not sure I understand what you are asking so beg my pardon if this is completely off topic. However, I wonder if this thread might be helpful to you: How to access a nested list of objects in the plugin code without making an external API call?
Whatever you do, please don’t use get_objects_by_id() or @Keith might jump through the Internet and give us both a proper beating.