performance enhancement for removeFields command