The blending at the edges is AE's anti-aliasing. You can turn it off by working in draft mode, I believe... I haven't personally had reason to do so.
Or you could use the Colorama trick in a nested comp, then apply the Mosaic effect, which may be more like what you want.