Config class change for preferences
added method in config class to reduce code for preferences
small fix in shm cache class

Change-Id: I89cc5f2a18e748bdff9c1f39e9f95c3a9cd09f8d
Merge "Config class change for preferences added method in config class to reduce code for preferences small fix in shm cache class"