using #{transformer..} here makes this a non-threadsafe operation

shouldn't we be using the 'payload' in the query's expressions instead?