use optimized local size