updated file permissions. Added ttl encryption.