final fix to limit memory consumption + speedup of loading data from node