Doing what in public can actually make you smarter.