---
title: "Comment by Rishabh Mishra on \"Zod 4.5 Just Made Your MERN Stack Validation 9x Leaner — Here's What Changed\" | Hashnode"
description: "The memoized-methods change is the real story here. If you build schemas dynamically, e.g. per-request validators in middleware, cache the schema object itself"
url: "https://hashnode.com/posts/zod-4-5-just-made-your-mern-stack-validation-9x-leaner-here-s-what-changed/6ad6199aee694df9c3a1a157/comment/6ad6d9e6ac9bef20ede86617"
---

[Discussion](https://hashnode.com/posts/zod-4-5-just-made-your-mern-stack-validation-9x-leaner-here-s-what-changed/6ad6199aee694df9c3a1a157)

Comment [Zod 4.5 Just Made Your MERN Stack Validation 9x Leaner — Here's What Changed](https://hashnode.com/posts/zod-4-5-just-made-your-mern-stack-validation-9x-leaner-here-s-what-changed/6ad6199aee694df9c3a1a157)

[Rishabh Mishra](https://hashnode.com/@rushdeploy)

[Oct 20](https://hashnode.com/posts/zod-4-5-just-made-your-mern-stack-validation-9x-leaner-here-s-what-changed/6ad6199aee694df9c3a1a157/comment/6ad6d9e6ac9bef20ede86617)

The memoized-methods change is the real story here. If you build schemas dynamically, e.g. per-request validators in middleware, cache the schema object itself and do not recreate it per request, or you still pay the memory cost on every call regardless of the per-schema shrink.
