it sounds like you did not get your brake fluid flushed at a dealership. mazda uses DOT3 brake fluid in the CX-9, which makes sense because DOT4 is generally recommended to be replaced every 2 years. mazda never calls for flushing the brake fluid in their service schedule but does list the brake fluid as DOT3:
"Brake fluid SAE J1703, or FMVSS116 DOT-3" (Page 10-4 in owner's manual)
https://www.amazon.com (commissions earned)
not that DOT4 is bad, it is "better" when it comes to boiling point, but it is overkill, and the issue i would have is that while DOT4 generally has a higher boiling point than DOT3, it absorbs water faster so it needs to be changed more often.
our BMW uses DOT4 and calls for a brake fluid flush every 2 years.
when i do a flush i use a lot more than 12 oz. i usually fill up a 20 oz water bottle and then another half of one with the old stuff; but i probably get some of the new stuff in there, too.
good read:
http://www.stoptech.com/technical-support/technical-white-papers/brake-fluid
"A seldom talked about characteristic is that because of this chemistry, the DOT 4 fluid will have a more stable and higher boiling point during the early portion of its life, but ironically once the fluid does actually begin to absorb water its boiling point will typically fall off more rapidly than a typical DOT 3."
"There are certain DOT 3 fluids with higher boiling points than some DOT 4 fluids. The real differentiating factor is that DOT 4 fluid should be changed more often than a DOT 3 fluid, because of the effects and rates of water absorption."