Add using cache in ConsoleApplication

Fixes console mode after 76b55d896844d92dec1512891dffc57eb585e98f commit