VE-1259: Caching vars before timeout to fix relocation

https://wikia-inc.atlassian.net/browse/VE-1259 @mklucsarits