SELECT 
  cscart_product_review_prepared_data.product_id AS product_id, 
  cscart_product_review_prepared_data.average_rating AS average_rating, 
  cscart_product_review_prepared_data.reviews_count AS reviews_count 
FROM 
  cscart_product_review_prepared_data 
WHERE 
  cscart_product_review_prepared_data.product_id IN (
    5111, 5112, 5113, 5114, 5115, 5116, 5117, 
    5118, 5119, 5120, 5121, 5122, 5123, 
    5124, 5125, 5126, 5127, 5128, 5129, 
    5130, 340, 341, 342, 343
  ) 
  AND cscart_product_review_prepared_data.storefront_id = 0

Query time 0.00027

JSON explain

{
  "query_block": {
    "select_id": 1,
    "message": "Impossible WHERE noticed after reading const tables"
  }
}