Using a DIB to reduce number of calls to X