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.
Merge pull request #427 from jyates/master

Adding short-circuit skip for indexing codecs.