Optimizing a bit setclass command