Eval in a function

Have you experimented with (compile-enforce-module-constants #f) ?