Caching in rules using the "global" object