Reducing classification RAM footprint