Updated config parameters and utility functions

Added several utility functions and a new function to search only cache instead of hitting backend database. Also make some soulmate parameters to be configurable.