But in recent years, Palantir has opened up to the private sector, selling its products to companies like Hershey and JP Morgan Chase. The idea is to use that same technology to help customers detect fraud and suss out customer behaviour patterns.

In fact, Palantir says that Hershey used its software to detect that sales go up when its chocolate is placed next to marshmallows on store shelves.

It’s working, apparently. Palantir disclosed to Fortune that it booked $1 billion in revenue in 2014, with commercial bookings up in 2015.

That means Palantir can afford not to sell to just anybody — you have to believe in its values, too. See, Palantir thinks that its data software can save the world, per that report — its products are even named “Gotham” and “Metropolis,” after Batman and Superman’s respective home cities.

That philosophy extends to its government partnerships: Billionaire investor and Palantir co-founder Peter Thiel tells Fortune that he thinks that Palantir’s data software can actually help end ubiquitous surveillance by showing agencies like the NSA exactly who’s up to no good, so they can leave everybody else alone.

“The government was collecting a lot of data [in the war on terrorism], more than they could analyse. If we could help them make sense of data, they could end indiscriminate surveillance,” Thiel tells Fortune.