Improved performance by caching type schemas for structured parameters