We found that there is internal limit (2.5MB) for storing a single item into internal cache.
Is there any chance to increase the limit? Or is it the limite hardcoded?
The limit is not imposed by Cache assertion but by the Gateway due to io.xmlPartMaxBytes (default: around 2MB).
Increasing this limit should solve your problem.