Encryption and compression of JSON content for Node.js