update compress_metadata/index_optimize code path for new index structure