Replace slashes with underscores in cache keys