Yes. The first wall would cache the data and the subsequent calls to GetData would retrieve it. This is how things like $regml(N) work, so it should be a relatively natural API.

Callbacks are also relatively natural as they're used in commands like /play and /filter