[sample] Only use external storage for disk cache if it's usable.