SELECT 
  1 
FROM 
  tmall_lock_keys 
WHERE 
  key_id = 'd51b2eb3e4150af61bb5d376a0303efd5658def8c1404e91a68941f8b67102fa' 
  AND token = 'BU9tGKpP3vFKrqSOpiDANr+Kwd1mVbC8qy0fp+FdMRw=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00929

JSON explain

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