shrank memory usage further by about 60%