Add configuration for persistence from environment