On-Demand Virtual Classes