add EmptyCache & fix memory leak
save 20% index space & 10% time