Lazy indexes

instead of saving the index content, simply save its definition (field name ATM), to avoid duplication.
at loading time, if there's no index content, build it.