Using the Google Apps Script Cache Service for objects above 100Kb.
This code is a fork of pilbot/9d0567ef1daf556449fb and glade-at-gigwell/4e080771d685fbf1908edbd98eb2d88c.
Look at the last version on apps-script-snippets.contributor.pw/snippets/cache/chunky-cache.