allow superficial re-use of codec object
cache tile compressed data and number of code blocsk in codec struct

on subsequent encodes
small tweak