Hmm, I believe patents aren’t used for trade secrets like the above example for exactly that reason. They are only used when there is a likelihood that people are going to figure it out the secret in the process of making money on it. If obfuscation is possible, it works better than patents.