Sony has agreed to pay $15 million to settle a proposed class action that followed a PlayStation security breach in 2011 that exposed the personal information of an estimated 30 million users.

But even adding in $2.75 million in plaintiffs’ attorneys fees and costs, $1.25 million for claims administration and multimillion-dollar legal expenses as a defendant in a bare-knuckles, three-year court battle, the financial toll for Sony Computer Entertainment America LLC likely will amount to less than the $171 million the company estimated in 2011 than it would cost to clean up the mess.