I'm not sure that's necessary. As mentioned it just does the same logic each request, can't it just do it once on initialization for each resource?