Adding cache size calculation after upload