Saving digitally signed PDF takes a lot of time

Greetings!

For some reason saving changes to the digitally signed PDF file takes like 10 minutes. Is there a way to make it faster?

PC specs:
Intel Xeon E5-2640
20GB ram

PDF had signature before alteration. Unfortunately I cant provide example PDFs cause they contain private information.

Here result of debug that shows Aspose.Pdf.Document.Save execution time:

damn.png (6.4 KB)

damn2.png (8.8 KB)

@mbpies

Can you please share your sample PDF document along with the sample code snippet with us so that we can test the scenario in our environment and address it accordingly.