dock-applets: optimize api invoked frequency