cache InvokableFactory and ReflectionFactory for multiple services

I don't know if you accept PR or not because it might be very early, but I thought that I could help you out. :D