Reducing metadata() calls