It is too slow to add to the shopping cart. Is there anything that can be optimized? Is it slower to use HTTPS in the background

It is too slow to add to the shopping cart. Is there anything that can be optimized? Is it slower to use HTTPS in the background! The server is 64 gb with 16 cores