Remove the RPC to retrieve the action_id of the client action as do_action() can take directly the xml_id, and batch the RPC to retrieve the menu_id with the initial RPC used to fetch channel slots, emojis...
Remove the RPC to retrieve the action_id of the client action as do_action() can take directly the xml_id, and batch the RPC to retrieve the menu_id with the initial RPC used to fetch channel slots, emojis...