reduce memory usage of autoimport