SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = 'ddf62b63897bd934f4465c4081c9bca2f7e71a7fa58ec3061eb608ac905ce455' 
  AND token = 'XTJiTtqQzhgj4t7rLpMr/nLH3G7ceJ5FMBpKzi0YJy8=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00040

JSON explain

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