Oh, and make sure as you go you get your backer tracks up to snuff wherever possible.
Example: If you just plugged in a simple beat and/or bass line to write to but intend on fleshing them out more later... well once you get your parts "written" and have some decent test takes (I will generally comp together the best version of my first round of takes to work with) then get right in there and finish your rhythm section (or get it closer to what you envision the final product to be).
It's like a back and forth for me. Start simple with the rhythm section, flesh out the riffs/vox/other melody/ornamentation. Go back to the rhythm section and fancy it up based on what you wrote on top. Then go back to the guits/vox/keys/etc and fancy them up. Just back and forth until you have something you are happy with.
Then rerecord EVERYTHING for the final. At that point every note/beat/cadence/whatever will be drilled deep into your subconscious, your muscle memory will be wrapped around the tune and for any "improv" parts you'll be able to launch into them much more smoothly because you aren't getting all wound up in the back of your head about what's coming up next (or what you may have mucked up before).
I treat my "pre production work" as if I were rehearsing/writing with a band. Just constantly working out little nuances and getting more and more comfortable with the tunes.
Anyone who's played in live, gigging bands can tell you that after all the pre tour prep and then actually playing the material live night after night for x amount of weeks/months that once you get back home the songs/band will be RIDICULOUSLY tighter/stronger/more confident/relaxed. And that's exactly how I treat material I'm working on here by my lonesome now that my gigging days are over.
And some may say that for chaotic/ecclectic music that that approach sucks the spontaneity out of things. I think the opposite is true. To truly be able to slam out some freaky deaky crazy person music that ebbs and flows and harms the listener's soul it is much more effective if all players know exactly how the other band members are going to react to random changes on the fly. Like with free form jazz jams and the like.
I probably don't work or write like many others these days though so that may not be all that useful.
I just hate half arsing these things.