further reduce memory usage