Integrating cache into grasp generator