Precache optimization

This optimization has 2 steps:
1. Remove jquery - 10% faster
2. Precache sorting - sorting almost instant!, 20% overall gain