I am curious if anyone has experimented with using persistent_term (https://erlang.org/doc/man/persistent_term.html) for static assets as opposed to reading from the file system? Obviously you would want to do this in production only so you are not constantly cleansing persistent_term during development. And you would want something in place to hydrate your persistent_term prior to starting your endpoint. But mostly curious if the idea is crazy or not.
I forked the Plug.Static plug and modified it to leverage persistent_term and the initial results looked good.