SELECT 
  1 
FROM 
  vi_lock_keys 
WHERE 
  key_id = 'edfeb7a3d01399d4182d983eee9bb1b476fa42333f4ba3d25659acf6e6b7f5e1' 
  AND token = 'dWOEvzupsLX1g/Frzw4DY/6AeXBRwKrpAk+hNitwyzg=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00010

JSON explain

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