check to see if encrypted data key exists

addresses #51