Maybe it's worth changing to `{module, _} = code:load_binary(...`, and/or `true = code:purge(Resource)` to make sure we fail fast if things get funky?