update encryption for code review feedback. Add version to encryption. Load only once for performance.