Files stored on local Lambda volumes should only be intended for temporary short-term storage and should not last longer than your only call to the Lambda function.
If you need to store data for a long time, use a database such as DynamoDB, or use Amazon S3.
If you must store data on a local volume, you can encrypt it, but you must do it yourself. Also note that the next time you call the function, the data is likely to disappear.
source share