Performance enhancements for delete all identities functionality.