Inbound GZIP Compression

I’m using KongCE, and have some very large JSON messages inbound to process thru Kong (> 6M - 1.5G). I was looking at a post on Lua based on https://gist.github.com/davidcaste/05b2f9461ebe4a3bb3fc. It’s using the rewrite_by_lua_file module to inject a custom lua script. However Kong appears to already invoke rewrite_by_lua_file elsewhere and I’m getting a duplicate directive error. Has anyone else solved this need?