Improve speed and cache performance