SELECT 
  1 
FROM 
  vi_lock_keys 
WHERE 
  key_id = '671f3d884ece0fd94832e571f835a6e08e4b81496a877b597f8c2845005cbde9' 
  AND token = 'nS6RSdiwHr8RZm5Ttahx59vJsw7tX6JdzTQ8TThSAc0=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00008

JSON explain

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