dev: optimize cache clean