SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_destination_products_amount 
WHERE 
  product_id IN (
    5030, 5029, 5033, 5028, 5031, 5032, 4348, 
    4445, 4793, 4783, 4790, 18167, 4461, 
    5285, 4464, 4617, 4618, 4619, 5376, 
    5377, 5064, 4905, 5378, 4654
  ) 
  AND destination_id = 115 
  AND storefront_id = 0

Query time 0.00052

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "table_name": "cscart_warehouses_destination_products_amount",
      "access_type": "range",
      "possible_keys": ["PRIMARY", "idx_storefront_id"],
      "key": "PRIMARY",
      "key_length": "9",
      "used_key_parts": ["product_id", "destination_id", "storefront_id"],
      "rows": 24,
      "filtered": 75,
      "index_condition": "cscart_warehouses_destination_products_amount.destination_id = 115 and cscart_warehouses_destination_products_amount.storefront_id = 0 and cscart_warehouses_destination_products_amount.product_id in (5030,5029,5033,5028,5031,5032,4348,4445,4793,4783,4790,18167,4461,5285,4464,4617,4618,4619,5376,5377,5064,4905,5378,4654)"
    }
  }
}

Result

product_id amount
4348 2
4445 1
4461 1
4464 4
4617 2
4618 4
4619 1
4654 16
4783 13
4790 16
4793 10
4905 1
5028 1
5029 1
5030 1
5031 1
5032 1
5033 1
5064 2
5285 1
5376 8
5377 7
5378 2
18167 3