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

Query time 0.00028

JSON explain

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