right-sizing(1. US Convert (something) to an appropriate or optimum size.
2.Reduce the size of (a company or organization) by eliminating staff positions, specifically when business conditions necessitate such a reduction. • ‘organizations are beginning to rightsize computer systems to suit themselves'oxforddictionaries.comMillie)
optimization(In programming, the process of producing more efficient (smaller or faster) programs through selection and design of data structures, algorithms, and instruction sequences)
turning around(улучшение; In February, 2003, Ralph Whitworth, whose specialty is turning around troubled companies, had engaged Paul McCartney to play for the birthday party of his then-wife Lily Snape)