Side-channel traces preprocessing