A utility to help reuse expensive objects inside performance critical code