Use the right cache and avoid duplicate downloads