Anthropic's exact-prefix caching evaluates tools, system prompts, and messages in strict hierarchical order. Here is how dynamic timestamps turn a 90% discount into a 25% write penalty.
You added prompt caching to cut costs 90%. A dynamic timestamp made every call 25% more expensive.