Preserve case setting in application.cfc

I’m trying to set the preserve struct key case setting via application.cfc (or with env var or any programmatic way), but haven’t been able to get it to work.

processingdirective preserveCase="true";

works on a single page but not in application.cfc, either at the start or in onRequestStart

Setting an environment variable LUCEE_PRESERVE_CASE=true seems to have no effect.

Only switching it on via the administrator works with this set up:

System Information

Version Lucee 5.3.8.201
Servlet Container WildFly / Undertow - 2.2.21.Final
Java 11.0.17 (Eclipse Adoptium) 64bit
OS Windows 11 (10.0) 64bit
Architecture 64bit
Inspect Templates (CFM/CFC) Once ( Good )
Local scope mode Modern

Simple test app

mytest = {};
mytest["Testing"] = 1;
mytest.Testing2 = 1;
writeDump(myTest);
writeDump(serializeJSON(myTest));
writeDump(server.system.environment);
writeDump(server.system.properties);