Cfdocument slow creating pdf after moving from coldfusion

Working on moving a coldfusion application to Lucee. After moving to Lucee the process to create a pdf using cfdocument is taking longer than in coldfusion. Any suggestions on how to speed things up? Settings I can tweak. It is taking around 5 minutes to create the pdf. Here is the code:

 <cfdocument format="pdf" name="edscl" localUrl="true">
	<cfinclude template="eoriginaldata.cfm">

This is using Lucee version


Without further info from eoriginaldata.cfm this can hardly be explained. The call to eoginaldata.cfm is identical in time?