LAPACK/BLAS optimizations