SELECT 
  1 
FROM 
  tmall_lock_keys 
WHERE 
  key_id = '57f7eb6c8df58e419105dd11d975091fcc841af1278ce72d230792631f4810f3' 
  AND token = 'ecpinp8VDp7joJgdjBWmiG5LYyJCLO2PGv9Rq+rfWT4=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.01489

JSON explain

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