Optimized hidden field initialization