Cache tile and grid drawing