Making code memory effective