Optimized Construction of Secure Knowledge-Base Views