Optimize auth setup

patch by Aleksey Yeschenko; reviewed by Jonathan Ellis for
CASSANDRA-6122