Privacy breaches are not only bad for users, but also costly for tech companies.