Snowflake performance optimization