Add ability to forbid data migration when creating FDO cache

Also fix some Gendarme issues.

Change-Id: I58b1f10b990655872dc5722a45e9d13923f3752d