further optimizations in active directory functionalities