Backwards-compatible context compilation