Added a semi working cache

Which is broken at the moment... also bringing down some other
functionality.
Right now, if you try to switch the the vector type and re-update
nothing will happen. Don't know why...
spelling mistake...