kws_index must be writable