Let's move this logic into predict.loctype. That way the results will get cached. Make sense?