Adding short-circuit skip for indexing codecs.

Solves a perf problem where, if the index isn't enabled, it still spends a lot of
time breaking up the Put/Delete, just for no work.