Merge "Move unused apps count calculation to bg thread" into sc-dev