This should greatly help #2418 Instead of grabbing all resources all the time (when one is requested) optimize this so that we only process ones of the same type. This will greatly reduce the amount of time required.