fixed crypto objects being reused