Diff margin performance improvements