public function get_data_to_cache() {

		$data = $this->get_raw_attributes();

		$columns = static::table()->get_columns();

		foreach ( $data as $column => $value ) {
			if ( isset( $columns[ $column ] ) ) {
				$data[ $column ] = $columns[ $column ]->prepare_for_storage( $value );
			}
		}

		return $data;
	}