added option to encrypt locally.