Optimizations and dimensionality reduction