> though in your case that might not be practical as this means Files app is essentially no longer a"single file"
First off, its already not a "single file" you need a PHP interpreter.
Secondly, you can cram the JS and CSS into a .phar file, the performance is horrible, but it's probably not noticeable in this scenario.