simple cache to reduce loading time