Change store order of objects so referenced objects stored first (faster...

... to load)