Fix a problem caused by very large objects (#7919)