WHAT TO USE FOR PASSWORD PROTECTED DIRECTORIES?

I plan to implement password protected directories in ehcp.

I want to ask your idea for method of password protected directories, that is, apache authentication,

I currently search for methods for this.
apache htaccess and htpasswd methods are slow at high user counts....

lib_auth_mysql has outdated...

is there another module/way.

What do you suggest ?

thanks.