The mechanism used to store var dumps was copied in ancient times from the Revision class, mimicking the code used to store page contents. This is brittle and hacky. That code path should be migrated to use BlobStore.
Note, this is currently blocked on cleaning up that code area, which in turn means removing BC code in 1.36 or 1.37, following T213006.