cached histogram with region