`kwargs` here should be the document in question. Usually they have 7 (text or int) attributes, which should be fine to load in memory.