improve cache directory and set swapfile backup undofile