fix startup and memory usage

Pavel Kuzmenko requested to merge kpn/performance_improvements into master

Merge request reports