Refactoring authfile management

* Now a copy with ebox permissions is stored

Faster, cleaner and safer