SELECT 
  1 
FROM 
  cscart_ec_print_temp_designs 
WHERE 
  session_id = 'B4FX-9H8H-T6HN-KRF9-UG3J-IPA2-GJ1K-JPC9' 
  AND product_id = 25 
  AND expires_at > 1770174887 
  AND confirmed = 'Y' 
LIMIT 
  1

Query time 0.00031

JSON explain

{
  "query_block": {
    "select_id": 1,
    "message": "no matching row in const table"
  }
}