I ended up taking the constant-loading approach, hopefully I got the codegen for it right.