Optimizing assert