If all drug stores everywhere colluded to record your ID permanently, the analogy might make sense.
There is a right to access porn anonymously if both parties consent. You need to prove that the government has an overriding need to insert itself in the middle.