Optimizations on cell height