Secrecy and democracy: a philosophical inquiry