Added detection of uncached memory regions to cache helpers