For finding a design document, the find and the property comparison are applied to the revision, as it is the target object for the query.
If this query was altered to find the master, rather than the revision, the code in the serializer automatically performs the necessary expansions to retrieve the latest version. When working with documents, the object seen in the client is always the version whether querying for master, revision, or version.
The serializer expands up the complex object and displays the version. From a revision, it gets the latest version. From a master, it gets the latest revision, which must be either current or working.
Alter the interface to ISPFDesignDocMaster and remove the property comparison to improve performance without changing the end functionality.