Of course there is a better way, as the sequel (Blinded by the lighter) requires only 32 queries.
However you are on a good track, and 128 queries is exactly the number of bits in md5, so 128 true/false queries will work.
The geeks shall inherit the properties and methods of object earth.