Faster check for duplicate patents