Kanji are stored in the brain's memory systems, specifically the procedural memory which is for forming habits. The procedural memory is where kanji should go so we can recall them without effort. To commit kanji to the procedural memory requires practicing writing them many times and testing ourselves to ensure we remember, as opposed to quickly trying to learn them before a test, which results in kanji being stored in the declarative memory instead of forming a habit.