Performance improvements

Cache Key.hashCode to improve HashMap operations performance and make Injector's InstanceProvider closure into method to improve compiler optimizations.