cache tile compressed data and number of code blocsk in codec struct

on subsequent encodes