A mountain retreat for "useless" science is a nice idea, but Anathem's "Maths" were something else entirely. They were actually quite dystopian.
Metaphorically, the scientists were then treated like the plutonium pits of nuclear weapons--well isolated, so that they could not form a critical mass and start a runaway chain reaction, and arms-controlled, so that none of them could be exploited by politics.
When the world needed a lot of brainpower, fast, the scientists were taken out of their safe storage and connected to each other using the separate monastic order of technicians, to intentionally cause a runaway chain reaction. Basically, the whole world was already pretty much boned, so the political leaders might as well set off their doomsday device--which was nothing more than to allow the smartest people on their planet to collaborate in real-time. That was the same thing that had previously (nearly) destroyed their civilization.
"Just because we checked our guns at the door doesn't mean our brains will change from hand grenades."
Also silo'ing off knowledge is kinda crazy. If a discovery in a 100 year math happens at year 2, then it take 98 more years before the outside world gets the research.
I think some of the people that are attracted to this kind of work are going to do whatever they want to do, incentives be damned.
I highly recommend reading "Anathem" by Neal Stephenson. The basic premise is there are institutions known as "Maths" that are essentially walled temples, the gates of which only open once every 1, 10, 100, and 1000 years (outermost gate annualy, 2nd innermost decmntennially, etc). Inside, a bunch of monks hang around studying "useless knowledge," which in this universe includes things such as particle physics (there's one "thousander" temple in which the monks just sit deep in a mountain staring at a giant pool of water to see if they can glimpse a flash of light).
I always thought it would be really cool to have something similar in our world, I hadn't realized it's been pursued before.