strip dots from wifi keys and do a small performance optimization