Performance improvements for reset()