security manager optimization