Gravar-mail: Optimization of a β-sheet-cap for long loop closure