improve cache directories