The documentation for the Response Transformer Advanced plugin notes potential performance issues when large bodies are received. Specifically,
Note on transforming bodies: Be aware of the performance of transformations on the response body. In order to parse and modify a JSON body, the plugin needs to retain it in memory, which might cause pressure on the worker's Lua VM when dealing with large bodies (several MBs). Because of Nginx's internals, the Content-Length header will not be set when transforming a response body.We want to prevent the plugin from executing when the response body meets a certain threshold.