fixes #330 - better init cache