Revert "Revert "Ildipo/performance""

Reverts twosigma/beaker-notebook#859