Fixed usage of encryption key