Cache snippets in StackUpdate

Change-Id: I1720a7c14edaf1d70b0894c2a4655f101d1c38eb
Merge "Cache snippets in StackUpdate"