Added support for global object caching (minimal debugging)