Rule #2: Hire yourself the smartest lawyer you can find (You can afford it).
Rule #3: Search around for a state or even foreign country whose tax laws are most sympathetic to your situation (see "smartest lawyer" under Rule #2.
Rule #4: Get out of California stat with your find.
Rule #5: See Rule #1.
Better call Saul.
Lots of ideas out there posted,but this one sounds the best. Seek sound legal advice before disclosing anything to anybody,& get out of Calif. for sure. There may be other states just as bad,but a good lawyer could help in this area. It looks like no matter how you do it,the feds are going to end up with at least a portion of it. Above all,you want to keep it as legal as possible.