It's really not hard. It's just all the IR/optimization machinery we already have applied to a shared context tree with locality bias.