An article on efficient D3DX Effects state management

I wrote an article on the subject I was talking about recently - an auto-magical system that manages device states in the effects. The article and links to implementation are on my homepage here: aras-p.info/texts/d3dx_fx_states.html