Generate and cache schema for all shards

@camilo @boourns cc @wisq 

Adds support for generating and saving schema for all shards