Obtain metaobject from gid

I see that it is possible to obtain a metaobject using its type and handle. however, when using shopify category filters, we are provided the GID (not the handle)

{% for filter in collection.filters %}
  {% if filter.param_name == 'filter.v.m.custom.metaobjects' %}
    {% for val in filter.active_values %}
      {% assign gid = val.value %}
      {% assign metaobject_id = gid | split: '/' | last %}
      {% comment %} how can i get the handle or metaobject here? {% endcomment %}
    {% endfor %}
  {% endif %}
{% endfor %}

FWIW,I also considered running a loop to find the metaobject, however looping is limited to 50 objects. similarly: using a map/find filter on the metaobjects array also didn’t work due to the 50 item limit.