You could consider using the SQL persistence feature on Sandbox. I’m not sure if it would cover your use-case, but it sounds like it …
See also: