add compilation cache to speed up initialization and tests