Added profile caching

Store values in instace value to avoid retrieving same object againg
and again