Persist global preferences

Change-Id: I58d856833073ef7d1179e7793c331022131e9969
Signed-off-by: Yasser Aziza <yasser.aziza@gmail.com>