reduce memory consumption for json loading to virtually zero