config: bunch of speed improvements