Improve data-compaction, able to phased compaction