Re-reading your question I realize I did not answer all of your question. Yes, you can enter into a written confidentiality agreement with opposing counsel to provide protection for "all purposes." Whether or not it would hold up in court and whether opposing counsel would agree is anyone's guess.