Improve BitmapData caching