Cache shouldDebug values in script containers

This should help Debug output speed a tiny bit.