use AsyncTask to calculate cache size