NH-3489 improve GetEffectiveParameterLocations performance