Cache another use of Class.getGenericSupertype