Added GroupTypeCache and updated framework to take advantage of it