optimized TypeSerializerFactory to cache type information