Implements sift3 and key reverse-querying.