Pass context when contructing DifferenceEngines

Change-Id: I926c910bf983ae023bfc0c20a9262a1bde452a17