optimized variant and class resource routes