Cache link_prefix per app and request.