Beyond Matryoshka: Revisiting Sparse Coding for Adaptive Representation