performance problem of magento2 cart price rule

I have imported 6.3 million coupons in magento 2.3. I have performance problems on the payment page. When I apply coupon it takes me many minutes. How to increase performance?
I am running the database on a separate server that is fast and I also have the configuration of the glera cluster.