Bug fix: Always set the ramBuffer pointer even when not reallocating with malloc
Use the cache for clipGetRegionOfDefinition