Added flag to disable invariant. Performance still shocking.