The fact that we can't do this without touching the filesystem irritates me, but I'm willing to call it not your problem in the name of forward progress.