Move precaching to initialization