I don't want any section of the pipe out of the wall. So I can't use a common "external" cap. I need a cap that goes inside the pipe (or something else).
After sealed, the pipe will still be filled with water and under normal pressure for the kind of pipe. It will be a dead leg.
I'm trying to avoid breaking walls to change the pressure valve or cap the pipe.