Performed some code optimisation for modele configuration loading