SELECT 
  1 
FROM 
  vi_lock_keys 
WHERE 
  key_id = '000549442c506bb77f15ac745e468b635c907d9894a5ac5900a0ece781878a15' 
  AND token = 'Y+bb0ib6ZhrmJ05NDCj1mZoxL8XGUD7l8Ptf7cj5x7g=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00013

JSON explain

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