Handling Shopify Function Metafield Size Limit

There is a related community discussion here.

Could you reduce the size by only writing JSON fields with values? Spliting the data across multiple metafields is viable but reducing the overall amount of data would be optimal.