Added cache for regions, to improve speed.