IMPORTANT UPDATE
One of our developers has created a plugin that achieves the same thing. Please check this out before looking at the unsupported DB approach I described above below
One of our developers has created a plugin that achieves the same thing. Please check this out before looking at the unsupported DB approach I described above below