What shader version are you working with? Exactly how many inputs are you using? Can you post some function stubs, maybe something can be massaged or combined.