Add some rudimentary support for midgard_storage functions