title: NSMergeConflict with encrypted CoreData
body: <p>I am currently using an encrypted Coredata courtesy of Gavin Black (<a href="https://github.com/project-imas/encrypted-core-data" rel="nofollow">https://github.com/project-imas/encrypted-core-data</a>) for my own project and I am running into SELECTIVE NSMergeConflict exceptions. I say selective on purpose as I am noticing it consistently fails for certain entities, and consistently functions as expected for other entities. The situation is as follows:</p>
  
  <ol>
  <li>Clean install app and login</li>
  <li>Upon login, I pull data down from cloud server (This works fine)</li>
  <li>I access some of the data and attempt to pull more detailed information down from the cloud (this fails every time).</li>
  </ol>
  
  <p>The exact error code I get is <strong>Cocoa error 133020</strong></p>
  
  <p>Things I have tried:</p>
  
  <ol>
  <li>I've checked to ensure only the main thread is accessing/modifying Coredata</li>
  <li>I've tried applying merge policies such as NSMergeByPropertyObjectTrumpMergePolicy to my MOC</li>
  </ol>
  
  <p>I should note that prior to switching my PSC from the native NSSQLiteStoreType to the encrypted version, all entities were being pulled/inserted/modified/deleted properly with no errors. </p>