added caching of value ids in object hook