Cfzipping ram:// files?

In Adobe ColdFusion I have code that is zipping some files I create in Ram in this way:

<cfzip action="zip" file="#TheZipFile#">
	<cfloop index="ThisFile" list="#FilesToZip#">
		<cfzipparam source="#ThisFile#">
	</cfloop>
</cfzip>

Where ThisFile equals ram://file.csv, etc.

This works fine in CF however in Lucee I’m getting:

class lucee.commons.io.res.type.cache.CacheResource cannot be cast to class java.io.File

Is this not possible via Lucee? Or is there some sort of adjustment I can make to get this to work?

Thanks!

Dan