Break graph loading into two stages