Improved implementation

- password value no longer appears in cleartext in the memory;
- threads are always enabled;
- redundant code deleted.