import pickle


def encode_pickle(data):
    """
    Serialize an object using Pickle's highest protocol.
    Pickle doesn't need any help dealing with custom Python structures.
    """
    return pickle.dumps(data, protocol=pickle.HIGHEST_PROTOCOL, fix_imports=False)