kalua: db: generate_grepable_index() check regulary if size > 0