precompile density data