Submodularity in cache networks