In memory type repository improved