Cache binary_logs variable

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>