Repository: flutter
Issue: [in_app_purchase] [ios] queryProductDetails can be slow
Labels: platform-ios,p: in_app_purchase,package,perf: speed,has reproducible steps,P2,found in release: 3.3,found in release: 3.5,team-ios,triaged-ios

The latest version of in_app_purchase returns products (queryProductDetails) too slow for the first call.
In the screen below there are debug print that show end of the method execution 

<img width="728" alt="Снимок экрана 2022-10-10 в 16 09 53" src="https://user-images.githubusercontent.com/30199599/195292942-2aed21ab-13b6-4a2d-94fd-dad7fe59b89e.png">

`xcode logs` 

Slow  ~ 40 seconds
```
2022-10-10 16:00:57.748228+0300 Runner[31681:1687712] productIdentifiers
2022-10-10 16:00:57.748381+0300 Runner[31681:1687712] request
2022-10-10 16:00:57.748453+0300 Runner[31681:1687712] handler
2022-10-10 16:00:57.748492+0300 Runner[31681:1687712] requestHandlers
2022-10-10 16:01:39.437832+0300 Runner[31681:1688753] startProductRequestWithCompletionHandler
```

Next session

Quickly ~ 70 milisec

```
2022-10-10 16:07:27.105526+0300 Runner[31729:1690177] productIdentifiers
2022-10-10 16:07:27.105798+0300 Runner[31729:1690177] request
2022-10-10 16:07:27.105918+0300 Runner[31729:1690177] handler
2022-10-10 16:07:27.105960+0300 Runner[31729:1690177] requestHandlers
2022-10-10 16:07:27.183882+0300 Runner[31729:1690797] startProductRequestWithCompletionHandler
```

This long execution doesn't depend on amount of products ids in the set.

<details>
<summary>Flutter doctor</summary>

```
[✓] Flutter (Channel stable, 3.3.1, on macOS 12.5 21G72 darwin-x64, locale ru-BY)
    • Flutter version 3.3.1 on channel stable at /Users/A/Downloads/FlutterSDK/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4f9d92fbbd (5 weeks ago), 2022-09-06 17:54:53 -0700
    • Engine revision 3efdf03e73
    • Dart version 2.18.0
    • DevTools version 2.15.0

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/A/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 13F100
    • CocoaPods version 1.11.3

[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio 2.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] Connected device (2 available)
    • iPhone (mobile) • b9046898e509ed16e2f88c63a6b2facc8fc5a23b • ios        • iOS 15.6 19G71
    • macOS (desktop) • macos                                    • darwin-x64 • macOS 12.5 21G72 darwin-x64

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 2 categories.
Process finished with exit code 0
```
</details>