Reduce memory usage of Heap Space

By reorganize import and remove unused.