Synchronized access to internal cache during saves to avoid race condition.