fix for unnessesary cache saves fix for #1194