compute download size only if not cached
refactored getcachedpkg()