Cache and rounding

Make it faster!