Add gashell optimization mechanism.