SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_destination_products_amount 
WHERE 
  product_id IN (
    142, 62, 141, 27, 22, 23, 18, 58, 51344, 
    120, 51345, 119, 108, 4, 5, 107, 51348, 
    121, 51349, 122
  ) 
  AND destination_id = 116 
  AND storefront_id = 1

Query time 0.00036

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "14.01"
    },
    "table": {
      "table_name": "cscart_warehouses_destination_products_amount",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY",
        "idx_storefront_id"
      ],
      "key": "PRIMARY",
      "used_key_parts": [
        "product_id",
        "destination_id",
        "storefront_id"
      ],
      "key_length": "9",
      "rows_examined_per_scan": 20,
      "rows_produced_per_join": 20,
      "filtered": "100.00",
      "index_condition": "((`test_uchur_k`.`cscart_warehouses_destination_products_amount`.`storefront_id` = 1) and (`test_uchur_k`.`cscart_warehouses_destination_products_amount`.`destination_id` = 116) and (`test_uchur_k`.`cscart_warehouses_destination_products_amount`.`product_id` in (142,62,141,27,22,23,18,58,51344,120,51345,119,108,4,5,107,51348,121,51349,122)))",
      "cost_info": {
        "read_cost": "12.01",
        "eval_cost": "2.00",
        "prefix_cost": "14.01",
        "data_read_per_join": "320"
      },
      "used_columns": [
        "destination_id",
        "storefront_id",
        "product_id",
        "amount"
      ]
    }
  }
}

Result

product_id amount
4 15
5 13
18 34
22 8
23 19
27 4
58 35
62 20
107 17
108 10
119 27
120 25
121 22
122 30
141 11
142 12
51344 15
51345 20
51348 10
51349 30