Best way to programatically determine if you are running Cache or IRIS