Enhance config storage format and loading