Split profile file loading into 2 phases.