magento2.3 – How can we restrict by calling unnecessary third-party API invoking in collectRates() method Magento 2

We are using a third-party extension to get the rates for customers with discounted rates based on customer preferences, Items and etc. And it’s working well.

Here we have couple of questions.

  1. When the product is added to the cart the collectRates() method is called. I think this is unnecessary until the customer on the shopping cart or the Checkout page. Can we restrict? If we restrict is there any issues that may arise?

  2. After adding the products to the cart, when the customer comes to the Checkout page, the collectRates() method is called 3 times. Is this necessary in Magento 2? If Yes why? If Not then how can we restrict?

  3. After selecting the shipping method when we click on the Next for payment method again the collectRates() method is called after selected the shipping method also. Is this necessary to in Magento 2? If Yes why? If Not then how can we restrict?

Can you please help on this?