cache/sweeper ehancement

This patchset provides minor enhancement for the cache framework.