SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_destination_products_amount 
WHERE 
  product_id IN (
    142, 141, 27, 22, 23, 17, 18, 106, 105, 
    58, 57, 51345, 119, 4, 5, 51348, 121, 
    51349, 122
  ) 
  AND destination_id = 116 
  AND storefront_id = 1

Query time 0.00051

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "13.31"
    },
    "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": 19,
      "rows_produced_per_join": 19,
      "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,141,27,22,23,17,18,106,105,58,57,51345,119,4,5,51348,121,51349,122)))",
      "cost_info": {
        "read_cost": "11.41",
        "eval_cost": "1.90",
        "prefix_cost": "13.31",
        "data_read_per_join": "304"
      },
      "used_columns": [
        "destination_id",
        "storefront_id",
        "product_id",
        "amount"
      ]
    }
  }
}

Result

product_id amount
4 15
5 13
17 32
18 34
22 8
23 19
27 4
57 35
58 35
105 25
106 22
119 27
121 22
122 30
141 11
142 12
51345 20
51348 10
51349 30