making the cache building a serial activity to avoid any problems