A few things that could be hacked on. The regex cluster to rewrite noise is an unholy horror of side effects. Remove httpsig key fetching from the input path. If the key is known, check signature and reply 200 or 401. If the key is unknown, immediately reply 202 and process later. The gob encoding for backend rpc uses more memory than needed. A custom encoding could reduce allocations. Maybe the backend could fetch the data itself.