Simple wrapper class for memory device context and DIB