Extracted an "approximate membership query" interface.