optimized cli evaluation