Added cache to Factory for ReflectionClass

Benchmarked this and the performance benefit was tiny but existant.