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