Generate and cache schema for all shards