Added in-memory cache for reflections