Added cache for custom  table query fetch