LUN-2008: improve performance for snippet vars save