Let's discuss this some more.

We had a brief discussion a long time ago, out of which fell [this gist](
https://gist.github.com/fourk/9fdb4d91695d3374c0b9) from @fourk, which is
what I based the implementation on.