Added cache to Factory for ReflectionClass

Benchmarked this and the performance benefit was tiny but existant.
the issue is that we have variable number of parameters