Optimization for build_profile function on microslabbed layers

I noticed more time was being spent multiplying and adding zeros in this function than on my numerical code. This appears to be a safe optimization, but I'd like your opinion on it. It speeds up large spline layers spectacularly. Best of all, no new C extensions!