Do you really want to write this to file on each slave? I'd rather propagate this to the master and report it only there. And destroy method suggests that it does some cleanup (joining threads etc..), here is some unrelated business logic (computing the key usage).