loading of JSON files speed up and uses less memory