SELECT 
  1 
FROM 
  vi_lock_keys 
WHERE 
  key_id = 'c3195a75395bb06b713cb839ff998c58bf4caad3424c07fa956c95f2e880bd43' 
  AND token = 'YDfqdIUn4GS0T4Ysdr7GdeOpNiKVM3sDBVSg1N8cyEQ=' 
  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"
    }
  }
}