implement compressed cache build at database build