SELECT 
  1 
FROM 
  tmall_lock_keys 
WHERE 
  key_id = 'ca17274729c63171e401b5ec4a80517bbe979f912431b8d2973db1e090da6e14' 
  AND token = 'IrOjgOLL5DeaM6KScrJlwqBOakC++oh4CiL7mslv1wY=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00788

JSON explain

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