Started optimizing encryption