Caching configs for main thread in shared memory. No improvement against constant memory though.