tweaked cache to distinguish bitmaps by sample size