Cache size determination in new thread
UI fix