Implemented specification for secrets; added key zeroing function