optimizations to config