[jan] Return generated (or manipulated) index name from addIndex().
Fix index name.
Fix cache usage.