Snowflake storage and compute optimization