Use latest apis when calculating disk cache size and detecting airplane mode