On Reliability and Security in Knowledge Grids