[TableRecord] Cache was slightly refactored

Only objects from the requested class are being read