Set format of cacheDecoder in format()

Fixes #187