(bug 5137) Quick routing-lookup implementation for api role.

I am not sure how this role is going to be handled in the future, but for now this works.