Some optimizations in Config class