reduce memory churn, inline smatrix