Optimized some of the bitmap operations to get rid of extra calculations when accessing a bit in the bitmap