Make caches use explicit dependencies instead of global Impromptu instance.