To handle the underfs checkpoint before the caching stuff
Modify the var name from mWrittenBytes to mCachedBytes