Well, from what i've seen today trim does indeed change with derate, but not necessarily with flap setting. Flaps 1 and 5 use the same trim as does flaps 10 through 25. Changes between thrust rating are pretty small, between the two different flap setting ranges much much bigger.