Skip to main content
← Back to News
AI Tools

AWS Reduces Token Use and Latency for Bedrock AgentCore JSON Workloads

AWS describes three composable strategies that cut token consumption by up to 71% and latency by up to 80% for agents handling large JSON payloads.

Published: November 17, 2026By GetAISet Editorial

Original source published: November 17, 2026

The AWS blog post explains that agents processing megabyte‑scale JSON data can see token usage and response latency spike, especially when each tool call injects the full payload into the LLM context. In a production Flightscape scheduling agent with 20 MB+ payloads, average request latency exceeded 15 seconds. By applying three strategies, the team reduced token consumption by as much as 71 % and lowered average latency by up to 80 % on a 23 MB benchmark payload.

Strategy 1 moves heavy artifacts such as request, response, and validation JSON files to Amazon S3 and stores only lightweight references in Amazon Bedrock AgentCore memory. A persisted‑state schema and content‑addressed keys ensure that identical payloads are not re‑uploaded. The post also outlines Strategy 2, which pages large result lists on demand, and Strategy 3, which further optimizes context usage. The companion code is available in a public GitHub repository.