SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = 'd4089a32778c80077b9345ecf2e96bb4dbb4c62aa5eba1d8040d84c1cc1081af' 
  AND token = 'F7Q1iB3v1JBbtNB1ubiHL2oVzoxvgZXiOg9XkFO2nQ4=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00031

JSON explain

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