Optimise config loading