import sqlite3
import pickle


def _compressed(value):
    """Compressed binary object with highest pickle protocol for sqlite3."""
    return sqlite3.Binary(pickle.dumps(value,
                                       protocol=pickle.HIGHEST_PROTOCOL))