I usually give the derailer pulleys the once over with a handi- wipe saturated with Simple Green when I am cleaning and lubing the chain. The cogs get "flossed" using a long piece of sisal twine which has been saturated in Simple Green, then I spray them with LPS 3, a wax based industrial strength rust inhibitor. It seems to keep everything smooth and clean.
Marc