SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '1b2594a4d4bd4b31489cb4a7b45cf8527792f1eda0757181ceae9d73a168964c' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.01150

JSON explain

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