Avoid crash on saving large object