Made cache into singleton.

Made cache into singleton and used defaultManager.