Optimize krypto model